<template>
  <div class="box">
    <div class="header">
      <van-nav-bar left-arrow @click-left="onClickLeft" />
      <div>
        <input class="ipt" placeholder="搜索" type="text" />
      </div>
    </div>
    <div class="main">
      <div class="a">
        <div>
          <div class="record">
            <span>历史记录</span>
            <span><van-icon name="delete-o" size="20" /></span>
          </div>
          <div class="searchDecord"><p>暂无搜索记录</p></div>
        </div>
        <!-- 热门搜索 -->
        <div>
          <p class="hotSearch">热门搜索</p>
        </div>
      </div>
    </div>
  </div>
</template>
<script>
export default {
  setup() {
    const onClickLeft = () => history.back();
    return {
      onClickLeft,
    };
  },
};
</script>
<style scoped>
.box {
  height: 667.2px;
  display: flex;
  flex-direction: column;
}
.header {
  width: 100%;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: rgba(239, 239, 245, 100);
}
.ipt {
  width: 302px;
  height: 28px;
  line-height: 20px;
  border-radius: 5px;
  background-color: rgba(255, 255, 255, 100);
  font-size: 14px;
  background: none;
  outline: none;
  border: none;
  background-color: #fff;
  margin-right: 10px;
}
.main {
  flex: 1;
}
.a {
  margin: 15px 10px 0 21px;
}
.record {
  font-size: 14px;
  display: flex;
  justify-content: space-between;
}
.searchDecord {
  width: 100%;
  height: 74px;
  color: rgba(154, 154, 154, 100);
  font-size: 12px;
}
.searchDecord p {
  text-align: center;
  line-height: 74px;
}
.hotSearch {
  color: rgba(16, 16, 16, 100);
  font-size: 14px;
}
</style>
